package view;

import javax.swing.JFrame;
import javax.swing.JPanel;

import java.awt.BorderLayout;
import java.awt.Panel;
import java.awt.CardLayout;
import java.awt.FlowLayout;
import java.awt.GridLayout;

import javax.swing.JButton;

import java.awt.Button;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

import javax.swing.JTextPane;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;

import controller.MainController;

public class mainView extends JFrame{
	public mainView() {
		setResizable(false);
		setBounds(100, 100, 250, 250);
		JButton btnAap = new JButton("Aap");
		
		JButton button = new JButton("");
		GroupLayout groupLayout = new GroupLayout(getContentPane());
		groupLayout.setHorizontalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addGap(43)
					.addComponent(btnAap)
					.addGap(35)
					.addComponent(button)
					.addContainerGap(180, Short.MAX_VALUE))
		);
		groupLayout.setVerticalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addGap(26)
					.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
						.addComponent(btnAap)
						.addComponent(button))
					.addContainerGap(223, Short.MAX_VALUE))
		);
		getContentPane().setLayout(groupLayout);
		btnAap.addActionListener(new MainController());
		btnAap.setActionCommand("aap");
		
		
	}
}
